
#include <bits/stdc++.h>

int main(int argc, char *argv[]) { return 0; }

#include <string.h> // 为strlen函数提供声明

int vowelStrings(char **words, int wordsSize, int left, int right) {
  int count = 0;
  for (int i = left; i <= right; i++) {
    char *currentWord = words[i];
    char first = currentWord[0];
    char last = currentWord[strlen(currentWord) - 1];

    if ((first == 'a' || first == 'e' || first == 'i' || first == 'o' ||
         first == 'u') &&
        (last == 'a' || last == 'e' || last == 'i' || last == 'o' ||
         last == 'u')) {
      count++;
    }
  }
  return count;
}
